import request from '@/utils/request'

// 创建公众号顺风车订单
export function createShunfengcheOrder(data) {
  return request({
    url: '/member/mp/shunfengche-order/create',
    method: 'post',
    data: data
  })
}

// 更新公众号顺风车订单
export function updateShunfengcheOrder(data) {
  return request({
    url: '/member/mp/shunfengche-order/update',
    method: 'put',
    data: data
  })
}

// 删除公众号顺风车订单
export function deleteShunfengcheOrder(id) {
  return request({
    url: '/member/mp/shunfengche-order/delete?id=' + id,
    method: 'delete'
  })
}

// 获得公众号顺风车订单
export function getShunfengcheOrder(id) {
  return request({
    url: '/member/mp/shunfengche-order/get?id=' + id,
    method: 'get'
  })
}

// 获得公众号顺风车订单分页
export function getShunfengcheOrderPage(query) {
  return request({
    url: '/member/mp/shunfengche-order/page',
    method: 'get',
    params: query
  })
}

// 导出公众号顺风车订单 Excel
export function exportShunfengcheOrderExcel(id) {
  return request({
    url: '/member/mp/shunfengche-order/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

// 取消公众号顺风车订单
export function cancelShunfengcheOrder(id) {
  return request({
    url: '/member/mp/shunfengche-order/cancel?id=' + id,
    method: 'get'
  })
}


// 重排公众号 顺风车订单
export function reSendShunfengcheOrder(id) {
  return request({
    url: '/member/mp/shunfengche-order/reSend?id=' + id,
    method: 'get'
  })
}

